<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page contentType="text/html"
	language="java"
	import="com.compuvest.web.*,java.text.DecimalFormat"
	pageEncoding="UTF-8"%>

<%@ taglib uri="/WEB-INF/tld/bottom.tld" prefix="bottom" %>
<%@ taglib uri="/WEB-INF/tld/head.tld" prefix="head" %>

<jsp:useBean id="sb" class="MySQL" scope="application"/>
<jsp:useBean id="advertArray" class="AdvertArray" scope="application"/>
<jsp:useBean id="basket" class="Basket" scope="session"/>
<%!
    public String selectWarranty(int pos, double warrantyPrice1, double warrantyPrice2, double warrantyPrice3, String desc) {
	double price = 0d;
	switch(pos) {
            case 1  : price = warrantyPrice1; break;
            case 2  : price = warrantyPrice2; break;
            case 3  : price = warrantyPrice3; break;
            default : price = 0d;
	}
	return price == 0d ? "" : String.format("<option value='%s|%.2f'/>+ %s $%,.2f", desc, price, desc, price);
    }

    Items basketItems = new Items(); // for getResellerPriceLine()
%>
<%
/*
    out.println("<pre>");
    out.println("------------------");
    java.util.Enumeration params = request.getParameterNames();
        while(params.hasMoreElements()) {
        String paramName = (String)params.nextElement();
        String[] paramValues = request.getParameterValues(paramName);
        if(paramValues.length == 1) {
	    out.print(paramName + "=[" + paramValues[0] + "]");
	}
	else {
    	    out.print(paramName + "=[" );
	    for(int i = 0; i < paramValues.length; i++) {
	        if(i > 0) {
    		    out.print(",");
		}
    		out.print(paramValues[i]);
	    }
    	    out.println("]");
	}
    	out.println();
    }
    out.println("------------------");
    out.println("</pre>");
*/
    Customer cust = basket.getCustomer();
    if(cust == null) {
	response.sendRedirect(application.getInitParameter("https") + "CustomerForm.jsp");
	return;
    }

    // if not fill some fields -> CustomerEdit
    if(!cust.billing.hasFirstName() || !cust.billing.hasLastName() || !cust.billing.hasAddress1() || !cust.billing.hasCity() ||
       !cust.billing.hasState() || !cust.billing.hasCountry() || !cust.billing.hasZip() || !cust.billing.hasPhone() ||
       !cust.shipping.hasFirstName() || !cust.shipping.hasLastName() || !cust.shipping.hasAddress1() || !cust.shipping.hasCity() ||
       !cust.shipping.hasState() || !cust.shipping.hasCountry() || !cust.shipping.hasZip()) {

	response.sendRedirect(application.getInitParameter("https") + "CustomerEdit.jsp");
	return;
    }

    DecimalFormat priceForm = new DecimalFormat("$#,##0.00");
    DecimalFormat jsprice = new DecimalFormat("$#0.00");

    // finish select
    String mode = request.getParameter("mode");
    if(mode != null) {
	// basket not empty
	if(basket.size() != 0) {

            basket.setNotes(advertArray.getString(request.getParameter("notes"), ""));
    
            basket.setShippingCode(advertArray.getString(request.getParameter("scdb"), ""));
            basket.setShippingDescription(advertArray.getString(request.getParameter("desb"), ""));

            basket.setPurchaseOrder(advertArray.getString(request.getParameter("porder"), ""));

            boolean blind = request.getParameter("blind") != null ? true : false;
            if(blind) {
                basket.setBlindShipping(true);
                basket.setPackingSlip(request.getParameter("slip") != null ? true : false);
            }

            // grand total
            basket.setGrandTotal(advertArray.getDouble(request.getParameter("totb"), 0d));
            // shipping cost
            basket.setShippingCost(advertArray.getDouble(request.getParameter("spb"), 0d));
            // tax cost
//            basket.setTaxCost(advertArray.getDouble(request.getParameter("taxb"), 0d));

            // transaction fee for Paily
            basket.setTransFee(advertArray.getDouble(request.getParameter("feeb"), 0d));
            // CC-credit card, PP-paypal, PI-Precharge, CD-cod, UN-union, WT-wiretransfer, ED-education
            basket.setPaymentMethod((request.getParameter("tabs") == null) ? "" : request.getParameter("tabs"));

            cust.setUseShippingAccount(request.getParameter("useacc") != null ? true : false);
            cust.setShippingAccount(advertArray.getString(request.getParameter("shipaccount"), ""));

            if("CC".equals(basket.getPaymentMethod())) {

		cust.setCName(cust.billing.getName());
		cust.setCExpMonth(advertArray.getString(request.getParameter("CExpMonth"), ""));
		cust.setCExpYears(advertArray.getString(request.getParameter("CExpYears"), ""));
                cust.setBankPhone("");

                cust.setCNumberAdd(advertArray.getInt(request.getParameter("CNumberAdd"), 0));

                String ccnumber = request.getParameter("CNumber");                         // if diff card add new one
		if(ccnumber != null && ccnumber.length() != 0 && !"0".equals(ccnumber) && !ccnumber.equals(cust.getCardNumberShow())) {
                    cust.setCardNumber(ccnumber);
		}
            }
	}

        // go to finish
        response.sendRedirect(application.getInitParameter("https") + "OrderFinish.jsp");
        return;

    } //if
    else {
        // update warranty
        String[] quantity = request.getParameterValues("quantity");
        String[] quantityID = request.getParameterValues("qtyID");
        String[] warranties = request.getParameterValues("warranty");
        if(quantity != null) {
            for(int i = 0; i < quantity.length; i++) {
                basket.setQuantity(advertArray.getInt(quantityID[i], 0), advertArray.getInt(quantity[i], 0), warranties[i]);
            }
        }
    }
%>
<html>
<%@include file="/incl/head.html" %>

<body>

<table style='height:100%;'>

<tr valign='top' height='84'>
 <td>

<head:show />

 </td>
</tr>

<tr valign='top' align='center'>
 <td>

<br/>
<form name='Payment' action='<%= application.getInitParameter("https") + "Payment.jsp" %>' onSubmit='return isPaymentDone(this);' method='POST'>
<%
    if(basket.size() == 0) {

%>
<br/>
<table class='part' width='60%' bgcolor='white' style="border-collapse:collapse;">
 <colgroup><col width='50%'><col width='50%'></colgroup>
 <tr class='bsm' height='26'><th>Billing Information</th><th>Shipping Information</th></tr>
 <tr>
  <td style='border-left:1px solid #d4d4d4;border-right:1px solid #d4d4d4;padding:10px 10px;'>
   <%= cust.billing.getCompany() %><br/>
   <%= cust.billing.getName() %><br/>
   <%= cust.billing.getAddress1() %><br/>
   <%= cust.billing.getAddress2() %><br/>
   <%= cust.billing.getCity() %>,
   <%= cust.billing.getState() %>
   <%= cust.billing.getZip() %>
   <%= cust.billing.getZip4() %>
   <%= cust.billing.getCountry() %><br/>
   Tel:&nbsp;&nbsp;&nbsp;<%= cust.billing.getPhone() %><br/>
   Cell:&nbsp;<%= cust.billing.getCell() %><br/>
   Fax:&nbsp;&nbsp;&nbsp;<%= cust.billing.getFax() %>
  </td>
  <td style='padding:10px 10px;'>
   <%= cust.shipping.getCompany() %><br/>
   <%= cust.shipping.getName() %><br/>
   <%= cust.shipping.getAddress1() %><br/>
   <%= cust.shipping.getAddress2() %><br/>
   <%= cust.shipping.getCity() %>,
   <%= cust.shipping.getState() %>
   <%= cust.shipping.getZip() %>
   <%= cust.shipping.getZip4() %>
   <%= cust.shipping.getCountry() %><br/>
   Tel:&nbsp;&nbsp;&nbsp;<%= cust.shipping.getPhone() %><br/>
   Cell:&nbsp;<%= cust.shipping.getCell() %><br/>
   Fax:&nbsp;&nbsp;&nbsp;<%= cust.shipping.getFax() %>
  </td>
 </tr>

 <tr height='26' class='bsm' align='center'>
  <td><a class='btlgr' href='<%= application.getInitParameter("https") + "CustomerEdit.jsp" %>'>Edit Your Profile</a></td>
  <td><%= cust.getCustomerID() == 0 ? "&nbsp;" : "<a class='btlgr' href='" + application.getInitParameter("https") + "OrdersHistory.jsp'>Orders History</a>" %></td>
 </tr>
</table>
<%
    } //##################################################
    else {
%>
 <table class='part' border='1' bordercolor='#d4d4d4' bgcolor='white' cellpadding='3' style='width:70%;border-collapse:collapse;'>
   <colgroup><col width='10%'><col width='64%'><col width='10%'><col width='6%'><col width='10%'></colgroup>
    <tr height='26' class='bsm'><th>Part #</th><th>Product Name</th><th>Price</th><th>Qty</th><th>Amount</th></tr>
<%
	boolean ground = false;
	String rowspan = "";
	for(ItemsInBasket item : basket.getContents()) {
	    rowspan = (item.getWarrantyMask() & Item.EXTENDED_WARRANTY) != 0 ? "rowspan=2" : "";
%>
    <input type='hidden' name='qtyID' value='<%= item.getItemID() %>' />
    <input type='hidden' name='quantity' value='<%= item.getTotalQuantity() %>' />
    <tr bgcolor='#ffff<%= (ground = !ground) ? "df" : "ff" %>' align='center'>
     <td <%= rowspan %> id='nowrap'><%= item.getAccwareCode() %><div style='font-size:10px;color:blue;'><%= item.getCondition() %></div></td>
     <td align='left'>
     <a href="<%= application.getInitParameter("http") + "Descr.jsp" %>?iid=<%= item.getItemID() %>" class=tlink><%= item.getItemName() %></a>
      <%= basket.getReseller() ? basketItems.getResellerPriceLine(item) : "" %>
     </td>
     <td>
<%	if(basket.getReseller() && item.getResPrice1() != 0d) { %>
      <div class='prices'><%= priceForm.format(item.getPrice()) %></div>
<%	} %>
     <%= priceForm.format(item.getSellPrice()) %><br/>
     </td>
     <td <%= rowspan %>><%= item.getTotalQuantity() %></td>
     <td><%= priceForm.format(item.getSellPrice() * item.getTotalQuantity()) %></td>
    </tr>
<%
	    // warranty &&  extended warranty any bit up ?
	    if((item.getWarrantyMask() & Item.EXTENDED_WARRANTY) != 0) {
%>
    <tr bgcolor=#ffff<%= ground ? "df" : "ff" %> align=center>
     <td align=left>
<%
    // manufacture warranty any bit up ?
    if((item.getWarrantyMask() & item.MANUFACTURE_WARRANTY) != 0) {
	String warrantyDay = "";
	if((item.getWarrantyMask() & item.MANUFACTURE_W30D) != 0)	warrantyDay = Item.W30DAYS;
	else if((item.getWarrantyMask() & Item.MANUFACTURE_W45D) != 0)	warrantyDay = Item.W45DAYS;
//	else if((item.getWarrantyMask() & Item.MANUFACTURE_W90D) != 0)	warrantyDay = Item.W90DAYS;
	else if((item.getWarrantyMask() & Item.MANUFACTURE_W180D) != 0)	warrantyDay = Item.W180DAYS;
	else if((item.getWarrantyMask() & Item.MANUFACTURE_W1Y) != 0)	warrantyDay = Item.W1YEAR;
	else if((item.getWarrantyMask() & Item.MANUFACTURE_W3Y) != 0)	warrantyDay = Item.W3YEARS;
	else if((item.getWarrantyMask() & Item.MANUFACTURE_W5Y) != 0)	warrantyDay = Item.W5YEARS;
%>
     <div style='font-size:10px;color:black;'>Warranty : <%= warrantyDay %></div>
<%
    }
%>
     <a href='<%= application.getInitParameter("info") + "ExtWarranty.jsp" %>'><font color=#cc0000>Extended warranty : </font></a>
      <select name='warranty' size=1 style='width:150px;font-size:8pt;' onchange='document.Payment.submit();'>
       <option value='0|0.00'/>No Thanks
<%
    int wpos = 1;
    StringBuilder wbuff = new StringBuilder(200);
    if((item.getWarrantyMask() & Item.WARRANTY_30D) != 0)
	wbuff.append(selectWarranty(wpos++, item.getWarrantyPrice1(), item.getWarrantyPrice2(), item.getWarrantyPrice3(), Item.W30DAYS));
    if((item.getWarrantyMask() & Item.WARRANTY_60D) != 0)
	wbuff.append(selectWarranty(wpos++, item.getWarrantyPrice1(), item.getWarrantyPrice2(), item.getWarrantyPrice3(), Item.W60DAYS));
    if((item.getWarrantyMask() & Item.WARRANTY_90D) != 0)
	wbuff.append(selectWarranty(wpos++, item.getWarrantyPrice1(), item.getWarrantyPrice2(), item.getWarrantyPrice3(), Item.W90DAYS));
    if((item.getWarrantyMask() & Item.WARRANTY_180D) != 0)
	wbuff.append(selectWarranty(wpos++, item.getWarrantyPrice1(), item.getWarrantyPrice2(), item.getWarrantyPrice3(), Item.W180DAYS));
    if((item.getWarrantyMask() & Item.WARRANTY_1Y) != 0)
	wbuff.append(selectWarranty(wpos++, item.getWarrantyPrice1(), item.getWarrantyPrice2(), item.getWarrantyPrice3(), Item.W1YEAR));
    if((item.getWarrantyMask() & Item.WARRANTY_3Y) != 0)
	wbuff.append(selectWarranty(wpos++, item.getWarrantyPrice1(), item.getWarrantyPrice2(), item.getWarrantyPrice3(), Item.W3YEARS));
    if((item.getWarrantyMask() & Item.WARRANTY_5Y) != 0)
	wbuff.append(selectWarranty(wpos++, item.getWarrantyPrice1(), item.getWarrantyPrice2(), item.getWarrantyPrice3(), Item.W5YEARS));
    if((item.getWarrantyMask() & Item.WARRANTY_LIFE) != 0)
	wbuff.append(selectWarranty(wpos++, item.getWarrantyPrice1(), item.getWarrantyPrice2(), item.getWarrantyPrice3(), Item.WLIFETIME));

    String repl = String.format("|%.2f'", item.getWarrantyPrice());
    out.write(wbuff.toString().replace(repl, repl + " selected=selected"));
%>
     </select>
     </td>
     <td><%= item.getWarrantyPrice() == 0d ? "" : priceForm.format(item.getWarrantyPrice()) %></td>
     <td><%= item.getWarrantyPrice() == 0d ? "" : priceForm.format(item.getWarrantyTotal()) %></td>
    </tr>
<%
	    }
	    else {
		out.write("<input type=hidden name=warranty value='0'/>");
	    }
	}
%>
 <tr height=30>
  <td colspan=5 align=right style='padding:0 14px;'>Subtotal: <%= priceForm.format(basket.getTotal()) %></td>
 </tr>

 <tr>
  <td colspan='5'>
   <table>
   <colgroup><col width='25%'><col width='40%'><col width='35%'></colgroup>
    <tr>
     <td align='right'><span class='ship2'>Please select Shipping method :</span></td>
<%
    boolean isUSAorCanada = (("US".equals(cust.billing.getCountry())) || ("CA".equals(cust.billing.getCountry())));

    java.util.List<ShipRate> shippRate = null;
    if("US".equals(cust.shipping.getCountry())) {
        shippRate = sb.getShippingChartUS(cust.shipping.getZip(), basket.getTotalWeight());
    }
    else {
        shippRate = sb.getShippingChart(cust.shipping.getCountry(), basket.getTotalWeight());
    }

    StringBuffer jsc = new StringBuffer(500);
    StringBuffer rdo = new StringBuffer(500);
    jsc.append("<script><!--\nfunction upship(ship){var ob=document.Payment;");
    jsc.append("if(ob.useacc.checked){ob.useacc.checked=false;}");
    rdo.append("<td style='border-left:1px solid #d4d4d4;border-right:1px solid #d4d4d4;'><div class='ship2'>");

//    double tax = "WA".equals(cust.shipping.getState()) ? basket.getTempTotal() * basket.WA_TAX_FEE : 0d;
    double transFee = !isUSAorCanada ? basket.getTempTotal() * Basket.PI_TRANS_FEE : 0d;
    double total = basket.getTempTotal() + transFee;
    String totalNoShipping = jsprice.format(total);
    String totalWithShipping = "";

    for(ShipRate ship : shippRate) {

        totalWithShipping = jsprice.format(ship.getShipPrice() + total);

        jsc.append("if(ship=='").append(ship.getShipCode()).append("'){");
        jsc.append("document.getElementById('desview').innerHTML='").append(ship.getDescription()).append(" : ';");
	jsc.append("ob.spb.value='").append(jsprice.format(ship.getShipPrice())).append("';");
	jsc.append("ob.scdb.value='").append(ship.getShipCode()).append("';");
        jsc.append("ob.desb.value='").append(ship.getDescription()).append("';");
	jsc.append("ob.totb.value='").append(totalWithShipping).append("';");
	jsc.append("}\n");

        rdo.append("<input type='radio' name='ship_opt' value='").append(ship.getShipCode()).append("' onclick='upship(this.value);'/> ");
	rdo.append(jsprice.format(ship.getShipPrice())).append(" - ").append(ship.getDescription()).append("<br/>");
    }
    jsc.append("}//-->\n</script>");
    rdo.append("</div></td>");

    out.write(rdo.toString());
    out.write(jsc.toString());

    StringBuilder totlist = new StringBuilder(500);
    totlist.append("\n<td valign='bottom' align='right'>");

//    if("WA".equals(cust.shipping.getState()))
//        totlist.append("<span class='ship2'>WA Tax: <input name='taxb' value='").append(jsprice.format(tax)).append("' size='10' readonly /></span><br/>");

    totlist.append("<span id='desview' class='ship2'></span>\n");
    totlist.append("<span class='ship2'><input name='spb' value='' size='10' readonly /></span><br/>\n");

    if(!isUSAorCanada)
        totlist.append("<span class='ship2'>Transaction fee : <input name='feeb' value='").append(jsprice.format(transFee)).append("' size='10' readonly /></span><br/>\n");

    totlist.append("<input type=hidden name='desb' value=''/>");
    totlist.append("<input type=hidden name='scdb' value='wen'/>");
    totlist.append("<input type=hidden name='totns' value='").append(totalNoShipping).append("'/>\n");

    totlist.append("<span class='ship2'>Total Amount : <input name='totb' value='' size='10' readonly /></span>\n");

    totlist.append("</td>\n");
    out.write(totlist.toString());
%>
    </tr>
   </table>

  </td>
 </tr>    


 <tr height='26'>
   <td colspan='5'>
    <table class='ship2'>
    <colgroup><col width='30%'><col width='70%'></colgroup>
    <tr>
     <td align='right'>Use shipping account : </td>
     <td>
      <input type='checkbox' name='useacc' value='Y' <%= cust.isUseShippingAccount() ? "checked=true" : "" %> onclick='ck_ship_acc();'/>&nbsp;
      <input name='shipaccount' size='26' maxlength='15' value='<%= cust.getShippingAccount() %>' />
     </td>
    </tr>
    <tr>
     <td align='right'>Purchase Order # : </td>
     <td style='padding:0 29px;'><input name='porder' size=26 maxlength=15 value='<%= basket.getPurchaseOrder() %>'/></td>
    </tr>
    <tr>
     <td align='right'>Blind drop ship : </td>
     <td><input type='checkbox' name='blind' value='Y' <%= basket.getBlindShipping() ? "checked=true" : "" %> onClick='ckblinds();' /></td>
    </tr>
    <tr>
     <td align='right'>Use packing slip : </td>
     <td><input type='checkbox' name='slip' value='Y' <%= basket.getPackingSlip() ? "checked=true" : "" %> <%= basket.getBlindShipping() ? "" : "disabled=true" %> /></td>
    </tr>
    <tr>
     <td align='right'>Comments : </td>
     <td><textarea cols='58' rows='3' name='notes'><%= basket.getNotes() %></textarea></td>
    </tr>
    </table>
   </td>
  </tr>
 <tr height='26' class='bsm'>
  <td colspan='2'><a class='btlgr' href='<%= application.getInitParameter("https") + "CustomerEdit.jsp" %>'>Edit Your Profile</a></td>
  <td colspan='2'><%= cust.getCustomerID() == 0 ? "&nbsp;" : "<a class='btlgr' href='" + application.getInitParameter("https") + "OrdersHistory.jsp'>Orders History</a>" %></td>
  <td colspan='2' align='right'><a class='btgn hbl2' href='javascript:void(0);' onClick="javascript:window.open('<%= application.getInitParameter("info") %>PopPolicies.jsp','','toolbar=no,scrollbars=yes,width=650,height=650,left=50,top=50');">Return<br/>Policy</a></td>
 </tr>
 </table>
<%
        String displayNone = isUSAorCanada ? "" : "style='display:none;'";
%>

<h4 style="color:red;">SELECT YOUR PAYMENT.</h4>
<input type=hidden name='tabs' value=''/>

<ul id="cvtabs" class="cvtb">
<li><a href="#" rel='CC' class='selected'>Credit Card</a></li>
<li><a href="#" rel='PP' <%= displayNone %>>PayPal</a></li>
<%-- <li><a href="#" rel='GG' <%= displayNone %>>Google</a></li> --%>
<li><a href="#" rel='CD' <%= displayNone %>>C.O.D</a></li>
<li><a href="#" rel='UN'>Western Union</a></li>
<li><a href="#" rel='WT' <%= isUSAorCanada ? "style='display:none;'" : "" %>>Wire Transfer</a></li>
</ul>

<div style="border:1px solid gray;width:680px;margin-bottom:1em;padding:10px;background-color:white;">
<div id='CC' class='nodisp'>
 <table>
  <tr><td>&nbsp;</td>
   <td>
    <%= isUSAorCanada ? "<img src='../images/credit.jpg'/>" : "<img src='../images/cred.jpg'/>" %>
   </td>
  </tr>
  <tr>
   <td class='hd'>CC Number :&nbsp;</td>
   <td>
    <input type=text name='CNumber' size='16' maxlength='16' value='<%= cust.getCardNumberShow() %>' onChange='this.value=isCreditCard(this.value)'/> <b>-</b>
    <input type=text name='CNumberAdd' size='4' maxlength='4' value='<%= cust.getCNumberAdd() == 0 ? "" : cust.getCNumberAdd() %>'/>
    <div class='sbutm'><a href='javascript:;' onclick="javascript:window.open('<%= application.getInitParameter("info") %>CreditCard.html','','toolbar=no,scrollbars=no,width=650,height=650,left=100,top=50');">Help</a></div>
   </td>
  </tr>
  <tr>
   <td class='hd'>Expires(mm/yy) :&nbsp;</td>
   <td>
    <table>
     <tr>
      <td>
       <select name='CExpMonth' size='1' style='width:50px;'>
	<option value='<%= cust.getCExpMonth() %>'/><%= cust.getCExpMonth() %>
        <option value='01'/>01
        <option value='02'/>02
        <option value='03'/>03
        <option value='04'/>04
        <option value='05'/>05
        <option value='06'/>06
        <option value='07'/>07
        <option value='08'/>08
        <option value='09'/>09
        <option value='10'/>10
        <option value='11'/>11
        <option value='12'/>12
       </select>
       <b> / </b>
       <select name='CExpYears' size=1 style='width:70px;'>
	<option value='<%= cust.getCExpYears() %>'/><%= cust.getCExpYears() %>
        <option value='13'/>2013
        <option value='14'/>2014
        <option value='15'/>2015
        <option value='16'/>2016
        <option value='17'/>2017
        <option value='18'/>2018
        <option value='19'/>2019
        <option value='19'/>2020
       </select>
      </td>
     </tr>
    </table>
   </td>
  </tr>
 </table>
<br/><input class='ch_bt' type='submit' name='mode' value='Checkout'/>
<%
        if(isUSAorCanada) {
%>
 <p class=messg style='text-align:justify;'>
  We encourage customers to use the same billing and shipping address for all credit card orders to save time on order
  processing and credit card verification
  <a href='<%= application.getInitParameter("https") + "Payment.jsp" %>'>procedures.</a>
  Billing address (address where credit card bank statement is mailed) has to be entered on the order with high accuracy.
  CompuVest Corp. electronic system is checking this information at the time of the order processing. If information is
  incorrect or incomplete the order will not be shipped. We usually notify customers by either a telephone call or
  email about a credit card processing problem. If we do not receive a call back from a customer within two business
  days in order to correct this information, the order will be canceled.</p><br/>
  <p style='font:normal 75% arial;text-align:justify;'><b>Useful tip:</b><br/> If you pay by American Express and your order exceeds $1000,
  please call American Express customer service to authorize your "ship to address". We always check if American Express
  has an ultimate shipping address on cardholder's file. This is a part of our usual procedure. By following these
  regulations you will save a lot of time and your order will be shipped without any delays.</p>
<%
    }
%>
 </div>

<div id='PP' class='nodisp'>
 <p class='messg' style='text-align:justify;'>
  Use PayPal free and secure payment system. Please ensure your address is an exact match to your PayPal
  account - otherwise your order may be rejected or denied.<br/>
  <font color=blue>PayPal is only accepted for US customers.</font>
  </p>
 <button type='submit' name='mode' value='Checkout'><img src='../images/paypal_out.gif' /></button>
</div>

<div id='CD' class='nodisp'>
 <p class='messg' style='text-align:justify;'>
  <b>&#8226;</b> All COD orders less than $100 can be paid by Personal or Company Check on delivery.<br/>
  <b>&#8226;</b> All orders exceeding $100 must be paid in the form of Cashier's check or Money Order (i.e. certified check)
   unless CompuVest credit department approved a company Check payment prior to the order submission.
 </p>
 <input  class='ch_bt' type='submit' name='mode' value='Checkout'/>
</div>

<div id='UN' class='nodisp'>
 <p class='messg' style='text-align:justify;'>
  Western Union is fastest and most convenient way to pay for International Orders. Unfortunately due to certain
  financial regulations, not all countries are allowed to send US currency out. Please check a
  <a href='http://www.westernunion.com/info/selectCountry.asp?country=global'>list of countries</a>,
  where this service is available. If it is not available in you country, please use
  <a href='<%= application.getInitParameter("info") + "International.jsp#aexpr" %>'>American Express</a>
  credit card or a <a href='<%= application.getInitParameter("info") + "International.jsp#wire" %>'>Wire Transfer</a>
  method of payment.
  </p>
 <br/><input  class='ch_bt' type=submit name='mode' value='Checkout'/>
</div>

<div id='WT' class='nodisp'>
 <p class='messg' style='text-align:justify;'>
  Orders from any country are accepted. There are no limits for the amount of the order. Please make sure to provide
  order confirmation number in the details section when you are sending the Wire Transfer.
 </p>
 <input  class='ch_bt' type=submit name='mode' value='Checkout'/>
</div>

</div>

<script type="text/javascript">var c=new ddtabcontent("cvtabs");c.setpersist(true);c.setselectedClassTarget("link");c.init();</script>
<%
    }
%>

</form>
<br/>

 </td>
</tr>

<tr height=35>
 <td>

<bottom:show />

 </td>
</tr>

</table>

</body>
<%@ include file="./incl/tracking.incl" %>
</html>
